/**
 * 
 */
package com.feonix.designPattern.prototype.framework;

import java.util.HashMap;
import java.util.Map;

/**
 * @CopyRight (c)1993-2017
 * @Project common_practice
 * @Comments 请输入该类的描述
 * @NameSpace com.feonix.designPattern.prototype.framework
 * @Author Feonixzw
 * @CreateDate 2018年1月31日
 */
public class Manager {

	private Map showCase = new HashMap();

	public void register(String name, Product proto) {
		showCase.put(name, proto);
	}

	public Product create(String name) {
		Product product = (Product) showCase.get(name);
		return product.createClone();
	}
}
